package org.kfive.nova.aop.proxy;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 15-8-7
 * Time: 下午4:23
 * To change this template use File | Settings | File Templates.
 */
public class ReflectTest {

    public static void main(String []args){
        String testStr="good";
        Class classWay1 = testStr.getClass();
        Class classWay2 = String.class;
        Class classWay3 =null;
        try {
            classWay3 = Class.forName("java.lang.String");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
        System.out.print(classWay1 == classWay2);
        System.out.print(classWay3 == classWay2);

        /*try {
            Field [] fields = Class.forName("com.kfive.proxy.DynamicProxyHandler").getDeclaredFields();
            for (Field field : fields){
                System.out.print(field.getName());
            }
            Method[] methods = Class.forName("com.kfive.proxy.DynamicProxyHandler").getDeclaredMethods();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }*/

    }
}
